﻿@model StudentManagement.Models.Student

<h3>@ViewBag.PageTitle</h3>

<div class="row justify-content-center m-3">
    <div class="card" style="width: 400px;">
        <img src="~/images/student.png" class="card-img-top" alt="...">
        <div class="card-body text-center">
            <h1 class="card-title">@Model.Name</h1>
            <p class="card-text">学生ID : @Model.Id</p>
            <p class="card-text">主修专业 : @Model.Major</p>
            <p class="card-text">电子邮箱 : @Model.Email</p>

            <a asp-controller="student" asp-action="index" class="btn btn-primary">返回</a>
            <a asp-controller="student" asp-action="edit" asp-route-id="@Model.Id" class="btn btn-primary">编辑</a>
            <a asp-controller="student" asp-action="delete" asp-route-id="@Model.Id" class="btn btn-danger">删除</a>
        </div>
    </div>
</div>

@*https://www.tutorialrepublic.com/twitter-bootstrap-tutorial/bootstrap-cards.php*@